$(function(){
    var windowHeight = $(window).height();
    if($(this).height() < windowHeight){
        $(this).height(windowHeight);
    }

    var href = $('#href-key').attr('href');
    var interval = setInterval(function(){
        var time = $('#wait').text();
        if (time <= 0) {
            location.href = href;
            clearInterval(interval);
        } else {
            $('#wait').text(time - 1);
        }
    }, 1000);
});